import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'
import Index from '@/components/Index'
import Login from '@/components/Login'
import Demo from '@/components/Demo'

import PlaylistDetail from '@/pages/playlist/Detail'

import User from '@/pages/user/Index'

Vue.use(Router)
var routes = [
  {
    path: '/',
    name: 'Index',
    component: Index
  },
  {
    path: '/login',
    name: 'Login',
    component: Login
  },
  {
    path: '/hello',
    name: 'Hello',
    component: Hello
  },
  {
    path: '/demo',
    name: 'Demo',
    component: Demo
  },
  {
    path: '/playlist/:id',
    name: 'PlaylistDetail',
    component: PlaylistDetail
  },
  {
    path: '/user',
    name: 'User',
    component: User
  }
]
export default new Router({routes: routes})
